package com.zhu.shopcenter.feign;

import com.zhu.shopcenter.feign.fallback.CourseFeignFallBack;
import com.zhu.shopcenter.vo.CourseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-edu",fallback = CourseFeignFallBack.class)
public interface CourseFeign {
    @GetMapping("api/front/course/order/getCourseInfo/{courseId}")
    public CourseVo getCourseInfo(@PathVariable String courseId);

}
